#ifndef _FTEXTDISPLAYOPENGL_H_
#define _FTEXTDISPLAYOPENGL_H_

#include "FTextDisplay.h"

namespace Font
{

	class TextDisplayOpenGL : public TextDisplay
	{

	public:

		TextDisplayOpenGL(Library* a_Library, unsigned int a_Amount);
		~TextDisplayOpenGL();

		void Reserve(unsigned int a_Amount);
		void Clear();
		void AddPosition(float a_X, float a_Y);
		void AddTexCoord(float a_U, float a_V);
		void NextQuad();
		void Render();

	protected:

		tb::Vec2* m_Position;
		unsigned int m_PositionFilled, m_PositionTotal;

		tb::Vec2* m_TexCoord;
		unsigned int m_TexCoordFilled, m_TexCoordTotal;

		unsigned int* m_VertexIndices;
		unsigned int m_VertexStart;
		unsigned int m_VertexFilled, m_VertexTotal;

		unsigned int m_GlyphTotal;	

	}; // class TextDisplayOpenGL

}; // namespace Font
	
#endif